<template>
  <div id="app">
    <router-view/>
	<nav>
	  <router-link to="/" tag="span">商品列表</router-link>
	  <router-link to="/shopcart" tag="span">购物车</router-link>
	</nav>
  </div>
</template>
<style>
*{
	margin: 0;
	padding: 0;
}
</style>
<style scoped>
nav {
  position: fixed;
  bottom: 0;
  width: 100%;
}

nav span{
	display: inline-block;
	width: 50%;
	height: 50px;
	line-height: 50px;
	border-top: 1px solid #ccc;
	background-color: white;
	text-align: center;
}

nav span.router-link-exact-active {
  color: #F18741;
  background-color: #FEF5EF;
  font-weight: bold;
}
</style>
